package com.yyxh.laiojbackend.common;

import com.yyxh.laiojbackend.constant.CommonConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 分页请求
 *

 */
@Data
@ApiModel(value = "分页表单")
public class PageRequest {

    /**
     * 当前页号
     */
    @ApiModelProperty(value = "当前页号",dataType = "int",required = true,example = "1")
    private int current = 1;

    /**
     * 页面数据量
     */
    @ApiModelProperty(value = "页面数据量",dataType = "int",required = true,example = "10")
    private int pageSize = 10;

    /**
     * 排序字段
     */
    @ApiModelProperty(value = "排序字段",dataType = "int",required = false)
    private String sortField;

    /**
     * 排序顺序（默认升序）
     */
    @ApiModelProperty(value = "排序顺序（默认升序）",dataType = "String",required = false)
    private String sortOrder = CommonConstant.SORT_ORDER_ASC;
}
